	var iframeids=["comment"];
	var iframehide="yes";

	var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
	var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0;

	function resizeCaller() {
		var dyniframe=new Array();

		for (i=0; i<iframeids.length; i++) {
			if (document.getElementById)
				resizeIframe(iframeids[i]);
	
				if ((document.all || document.getElementById) && iframehide=="no") {
					var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]);
					tempobj.style.display="block";
				}
			}
	}

	function resizeIframe(frameid) {
		var currentfr=document.getElementById(frameid);

		if (currentfr && !window.opera){
		currentfr.style.display="block";

		if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight)
		currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
		else if (currentfr.Document && currentfr.Document.body.scrollHeight)
		currentfr.height = currentfr.Document.body.scrollHeight;

		if (currentfr.addEventListener)
		currentfr.addEventListener("load", readjustIframe, false);
		else if (currentfr.attachEvent){
		currentfr.detachEvent("onload", readjustIframe);
		currentfr.attachEvent("onload", readjustIframe);
		}
	}
	}

	function readjustIframe(loadevt) {
		var crossevt=(window.event)? event : loadevt;
		var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement;

		if (iframeroot)
		resizeIframe(iframeroot.id);
	}

	function loadintoIframe(iframeid, url) {
		if (document.getElementById)
		document.getElementById(iframeid).src=url;
	}

	if (window.addEventListener){
	window.addEventListener("load", resizeCaller, false);
	}else if (window.attachEvent){
	window.attachEvent("onload", resizeCaller);
	}else{
	window.onload=resizeCaller;
	}
	
/*
 * 
 * 아래 소스는 IE에서는 작동 하나 Firefox에서 오류발생함. textarea의 overflow: visible; 적용이됨.
 * resizeIfr(this, 100), 
 * 
 */
/*
function resizeIfr(obj, minHeight) { 

   minHeight = minHeight || 10;
   try {
    var getHeightByElement = function(body) {
     var last = body.lastChild;
     try {
      while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
      return last.offsetTop+last.offsetHeight;
     } catch(e) {
      return 0;
     }
     
    }
      
    var doc = obj.contentDocument || obj.contentWindow.document;
    if (doc.location.href == 'about:blank') {
     obj.style.height = minHeight+'px';
     return;
    }
    
    //var h = Math.max(doc.body.scrollHeight,getHeightByElement(doc.body));
    //var h = doc.body.scrollHeight;
    if (/MSIE/.test(navigator.userAgent)) {
     var h = doc.body.scrollHeight;
    } else {
     var s = doc.body.appendChild(document.createElement('DIV'))
     s.style.clear = 'both';

     var h = s.offsetTop;
     s.parentNode.removeChild(s);
    }
    
    //if (/MSIE/.test(navigator.userAgent)) h += doc.body.offsetHeight - doc.body.clientHeight;
    if (h < minHeight) h = minHeight;
   
    obj.style.height = h + 'px';
    if (typeof resizeIfr.check == 'undefined') resizeIfr.check = 0;
    if (typeof obj._check == 'undefined') obj._check = 0;

  //  if (obj._check < 5) {
  //   obj._check++;
     setTimeout(function(){ resizeIfr(obj,minHeight) }, 200); // check 5 times for IE bug
  //  } else {
     //obj._check = 0;
  //  } 
   } catch (e) { 
    //alert(e);
   }
  }

*/